{{define "infoCollection/labExamination.html"}}
<div>
    <form class="form-horizontal" id="labExaminationForm">
        <div class="box-body">
            <div class="box box-info" style="box-shadow: none;margin-bottom: 0;">
                <div class="box-header with-border">
                    <h3 class="box-title">血糖</h3>
                </div>
                <div style="padding-top: 10px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            检查时间：
                        </label>
                        <div class="col-sm-3">
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" name="shiyanshi_xuetang_kongfu_checkDate" id="shiyanshi_xuetang_kongfu_checkDate" class="form-control pull-right">
                            </div>
                        </div>
                        <label class="col-sm-3 control-label">
                            空腹血糖(mmol/L)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="xuetang_kongfu" id="xuetang_kongfu" class="form-control" placeholder="空腹血糖">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            检查时间：
                        </label>
                        <div class="col-sm-3">
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" name="shiyanshi_xuetang_canhou_checkDate" id="shiyanshi_xuetang_canhou_checkDate" class="form-control pull-right">
                            </div>
                        </div>
                        <label class="col-sm-3 control-label">
                            餐后两小时血糖(推荐)(mmol/L)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="xuetang_canhou" id="xuetang_canhou" class="form-control" placeholder="餐后两小时血糖">
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            检查时间：
                        </label>
                        <div class="col-sm-3">
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" name="shiyanshi_xuetang_thxhdb_checkDate" id="shiyanshi_xuetang_thxhdb_checkDate" class="form-control pull-right">
                            </div>
                        </div>
                        <label class="col-sm-3 control-label">
                            糖化血红蛋白(%)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="xuetang_thxhdb" id="xuetang_thxhdb" class="form-control" placeholder="糖化血红蛋白">
                        </div>
                    </div>
                </div>
            </div>
            <div class="box box-info" style="box-shadow: none;margin-bottom: 0;">
                <div class="box-header with-border">
                    <h3 class="box-title">血脂</h3>
                </div>
                <div style="padding-top: 10px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            检查时间：
                        </label>
                        <div class="col-sm-3">
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" name="bloodFatExamineDate" id="bloodFatExamineDate" class="form-control pull-right">
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            甘油三脂(mmol/L)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="xuezhi_ganyousanzhi" id="xuezhi_ganyousanzhi" class="form-control" placeholder="甘油三酯">
                        </div>
                        <label class="col-sm-3 control-label">
                            胆固醇(mmol/L)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="xuezhi_danguchun" id="xuezhi_danguchun" class="form-control" placeholder="胆固醇">
                        </div>
                    </div>

                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            低密度脂蛋白胆固醇(mmol/L)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="xuezhi_dimidu" id="xuezhi_dimidu" class="form-control" placeholder="低密度脂蛋白胆固醇">
                        </div>
                        <label class="col-sm-3 control-label">
                            高密度脂蛋白胆固醇(mmol/L)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="xuezhi_gaomidu" id="xuezhi_gaomidu" class="form-control" placeholder="高密度脂蛋白胆固醇">
                        </div>
                    </div>
                </div>
            </div>
            <div class="box box-info" style="box-shadow: none;margin-bottom: 0;">
                <div class="box-header with-border">
                    <h3 class="box-title">同型半胱氨酸</h3>
                </div>
                <div style="padding-top: 10px;">
                    <div class="form-group">
                        <label class="col-sm-3 control-label">
                            检查时间：
                        </label>
                        <div class="col-sm-3">
                            <div class="input-group date">
                                <div class="input-group-addon">
                                    <i class="fa fa-calendar"></i>
                                </div>
                                <input type="text" name="shiyanshi_hcyExamineDate" id="shiyanshi_hcyExamineDate" class="form-control pull-right">
                            </div>
                        </div>
                        <label class="col-sm-3 control-label">
                            同型半胱氨酸(μmol/L)：
                        </label>
                        <div class="col-sm-3">
                            <input type="text" name="shiyanshi_hcy" id="shiyanshi_hcy" class="form-control" placeholder="同型半胱氨酸">
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="box-footer">
            <button type="button" class="btn btn-info btn-lg middleBtn" id="saveLabExamination">保存</button>
        </div>
    </form>
</div>
<script>

    if (canUpdate != null && canUpdate != undefined && !canUpdate) {
        $("#saveLabExamination").hide();
    }
    $("#saveLabExamination").click(function () {
        let d = {};
        let t = $('#labExaminationForm').serializeArray();
        $.each(t, function () {
            d[this.name] = this.value;
        });
        let data = JSON.stringify(d);
        ajaxLoading("正在提交数据...");
        $.post("/infoCollection/save", {type: "labExamination", id: $("#screenId").val(), data: data}, function (resp) {
            ajaxLoadEnd();
            afterUpdateFormData(resp,"labExamination");
        });
    });

    function labExaminationInit(labExaminationData) {
        $("#labExaminationForm").initForm({jsonValue: labExaminationData, isDebug: false});
    }
</script>
{{end}}